<?php

namespace App\Transformers;

use League\Fractal\TransformerAbstract;

class PaymentDetailTransformer extends TransformerAbstract
{

    public function transform($item)
    {
        return[
            "id"=>$item->id,
            "student_id"=>$item->student_id ,
            "putime_id"=>$item->putime_id,
            "ispick_up"=>$item->is_pick_up,
            "commit_status"=>$item->id,
            "auto"=>'',
            "create_time"=>$item->created_at->toDateTimeString(),
            "paystatus"=>$item->paystatus,
            "money"=>$item->money,
            "coach_id"=>$item->coach_id,
            "km"=>$item->km,
            "startime"=>$item->start_time,
            "endtime"=>$item->end_time,
            "minute"=>$item->minute,
            "max"=>$item->max,
            "only"=>$item->only,
            "reserve"=>$item->reserve,
            "price"=>$item->price,
            "payprice"=>'',
            "hours"=>'',
            "chargeback_type"=>'',
            "location_id"=>'',
            "addtime"=>'',
            "status"=>$item->status,
            "timestage"=>'',
            "sum_period"=>$item->sum_period,
            "income"=>'',
            "standard"=>'',
            "putime_deduct"=>''
        ];

    }


}
